Fixing video memory errors in games